package com.ueboot.weishop.repository.setting;

import com.ueboot.weishop.entity.setting.CategoryEntity;
import com.ueboot.core.repository.BaseRepository;
import org.springframework.stereotype.Repository;

/**
 * 商品类目仓储层
 */
@Repository
public interface CategoryRepository extends BaseRepository<CategoryEntity,Long> {

    /**
     * 根据code 查询类目
     * Created by wangcheng on 2017/11/4.
     */
    CategoryEntity findByCode(String code);
    CategoryEntity findById(Long id);

}
